#define _CRT_SECURE_NO_WARNINGS 1
#include"SequenceList.h"

void TextSeqList(void)
{
	SeqList L;
	SeqListInit(&L);
	SeqListCheckCapcity(&L);
	SeqListPushBack(&L, 1);
	SeqListPushBack(&L, 2);
	SeqListPushBack(&L, 3);
	SeqListPushBack(&L, 4);
	SeqListPushBack(&L, 5);
	SeqListPushFront(&L, 0);
	SeqListPopBack(&L);
	SeqListPopBack(&L);
	SeqListPopFront(&L);
	SeqListInsert(&L, 0, 0);
	SeqListErase(&L, 0);
	SeqListPrint(&L);
	printf("%d\n", SeqListFindKth(&L, 1));
	SeqListFind(&L, 3);
	printf("%d\n", SeqListFind(&L, 3));
	SeqListSet(&L, 0, 5);
	SeqListPrint(&L);
	SeqListDestory(&L);
}


int main()
{
	TextSeqList();
	return 0;
}